package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAlldetails() (error, []models.Order_details, int64) {
	err, detailsData, total := dao.GetallDetails()
	return err, detailsData, total
}


func Deldetails(orderId string) error {
	err := dao.Deldetails(orderId)
	return err
}

func Updatedetails(detailsData models.Order_details) error{
	err:= dao.Updatedetails(detailsData)
	return err
}

func AddDetailsdata( detailsData models.Order_details) (error) {
	err := dao.AddDetails(detailsData)
	return err
}